package put.poznan.qmese.matlab;

import put.poznan.qmese.matlab.control.ConsoleInput;
import put.poznan.qmese.matlab.control.Control;
import put.poznan.qmese.matlab.control.Input;
import put.poznan.qmese.matlab.model.Memory;
import put.poznan.qmese.matlab.parser.ParserException;

public class EntryPoint {

	/**
	 * @param args
	 * @throws  
	 */
	public static void main(String[] args) {

		System.out.println("Welcome in matrix calculator");
		
		Memory.init();
		
		Input input = new ConsoleInput();
		Control ctrl = new Control();
		String command = "";
		while (!(command=input.readCommand()).equals("exit")) {
			ctrl.handle(command);
		}
		//in.close();
		System.out.println("Bye!");
	}

}
